﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ledict.ConditionExtract.Model
{
    /// <summary>
    /// 登录配置文件类
    /// </summary>
    public class DlInfo
    {
        public string Version { get; set; }

        public string xmlPath { get; set; }

        public string JudgeDoc { get; set; }

        public string ElementsRuleConfigPath { get; set; }
    }

    /// <summary>
    /// 配置信息
    /// </summary>
    public class ConfigInfo
    {
        /// <summary>
        /// 登录的配置信息
        /// </summary>
        public LoginInformation LoginInfo { get; set; }

        /// <summary>
        /// 信息单元比对界面数据库信息
        /// </summary>
        public DataBaseSave DataBaseInfo { get; set; }
    }

    /// <summary>
    /// 登录信息
    /// </summary>
    public class LoginInformation
    {
        public List<string> UserNames { get; set; }
    }

    /// <summary>
    /// 信息单元比对界面数据库信息
    /// </summary>
    public class DataBaseSave
    {
        /// <summary>
        /// 最后一次来源IP地址
        /// </summary>
        public string SourceIp { get; set; }

        /// <summary>
        /// 最后一次来源类型
        /// </summary>
        public string SourceType { get; set; }

        /// <summary>
        /// 最后一次目标IP地址
        /// </summary>
        public string TargetIp { get; set; }

        /// <summary>
        /// 最后一次目标类型
        /// </summary>
        public string TargetType { get; set; }

        /// <summary>
        /// 数据库类型集合
        /// </summary>
        public List<DataBaseInfo> DataBaseInfos { get; set; }

    }

    /// <summary>
    /// 数据库类
    /// </summary>
    public class DataBaseInfo
    {
        /// <summary>
        /// IP地址
        /// </summary>
        public string Ip { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// 端口
        /// </summary>
        public string Port { get; set; }

        /// <summary>
        /// 数据库类型
        /// </summary>
        public string DataBaseType { get; set; }
    }
}
